<?php $this->load->view('common/ck-bosspagehead'); ?>
<?php $this->load->view('common/ck-bossheader'); ?>
<article id="content">
    <div class="pgwrapper">
    <div class="w960 bg1 p15 bx_shw">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="20%" style="border-right: 2px solid #e5e5e5;" valign="top">
		<?php $this->load->view('enterprises/leftnavCMS'); ?>
		</td>
		<td width="80%" valign="top"><form enctype="multipart/form-data"
				action="/createMailer"  onsubmit="return validateForm()" method="POST">
				<table width="100%" border="0" cellpadding="5" cellspacing="0"
					style="padding-left: 20px;">
					<tr>
						<td class="txt-blck">Select Store:</td>
						 <td><select id="mailer_store_id" name="mailer_store_id" style="width: 200px;" onchange="">
			                	<?php foreach ($allStoresArray as $temp){ ?>
								<option value="<?php echo $temp['store_id']; ?>">
								<?php echo $temp['store_name'].' ('.$temp['count'].')'.' -('.$temp['store_id'].')'; ?>
								</option>
								<?php } ?>		                	
			            	</select></td>
					</tr>
					<tr>
						<td><input type="button" name="getList" value="GetList" onclick="GetList()" /></td>
						<td><input type="submit" name="create" value="Create" /></td>
					</tr>
				</table>
			</form></td>
	</tr>
</table>
</div>
</div>
</article>
<div class="clr-both spacer-10">&nbsp;</div>
<?php $this->load->view('common/ck-bossfooter'); ?>
<script>

function validateForm(){
	var x = document.getElementById('banner_alt').value;
	if(x==""){
	alert("Banner Alt must be filled out.");
	return false;
	}
}
</script>
